import React, {Component} from 'react';
import {Provider} from 'react-redux'
import {BrowserRouter as Router, Route} from 'react-router-dom'

import store from '../store'
import filterApi from '../api/filter'
import Dashboard from '../component/dashboard'

class root extends Component{

    componentWillMount() {
        filterApi()
    }

    render() {
        return (
            <Provider store={store}>
                <Router>
                    <Route path='/' component={Dashboard}/>
                </Router>
            </Provider>
    )}
}

export default root;